package Test;
/**
 * performed basic initial test of the database service methods
 */
import java.util.HashMap;

import junit.framework.TestCase;

import com.MonkWorks.clockDTO.Job;
import com.MonkWorks.clockDTO.User;
import com.MonkWorks.timedormitoryDB.ItimeProvider;

public class TimeProviderTest extends TestCase{
	
	ItimeProvider timeDB;
	
	@Override
	protected void setUp() throws Exception{
		super.setUp();
	}
	
	/**
	 * Test Clock in
	 * Pass if able to process normally and throw Exceptions if it gets incorrect values
	 */
	/*public void TestClockIn(){
		User validUser = new User();
		Job validJob = new Job();
		
		
		validUser.setUsername("ckattick");
		String time = "1200";
		validJob.setJobID(0002);
		//Not sure how GPS is going too work yet
		String Location = "Ohio";
		try{
			timeDB.clockIn(validUser, time, validJob, Location);
		}
		catch(Exception e)
		{
			fail("Should have clocked in normally");
		}
		
	}
	
    /**
     * Test Clock out
     * Pass if able to process normally and throw Exceptions if it gets incorrect values
     */
	/*public void TestClockOut(){
		User validUser = new User();
		Job validJob = new Job();
		
		
		
		validUser.setUsername("ckattick");
		String time = "1200";
		validJob.setJobID(0002);
		//Not sure how GPS is going too work yet
		String Location = "Cincinnati";
		try{
			timeDB.clockOut(validUser, time, validJob, Location);
		}
		catch(Exception e)
		{
			fail("Should have clocked out normally");
		}
	}
	
	/**
	 * Test see if Job is retrieved with the right JobID
	 * Pass if right job is retrieved
	 */
	public void TestfetchJob(){
	
	}


}

